.class Ldata/MarketPupCarAdapter$2;
.super Ljava/lang/Object;
.source "MarketPupCarAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Ldata/MarketPupCarAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Ldata/MarketPupCarAdapter;


# direct methods
.method constructor <init>(Ldata/MarketPupCarAdapter;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Ldata/MarketPupCarAdapter$2;->this$0:Ldata/MarketPupCarAdapter;

    .line 140
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 142
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    .line 144
    .local v2, "size":I
    iget-object v3, p0, Ldata/MarketPupCarAdapter$2;->this$0:Ldata/MarketPupCarAdapter;

    # getter for: Ldata/MarketPupCarAdapter;->listbean:Ljava/util/List;
    invoke-static {v3}, Ldata/MarketPupCarAdapter;->access$0(Ldata/MarketPupCarAdapter;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 146
    .local v0, "bean":Lbean/GoodsBean;
    invoke-virtual {v0}, Lbean/GoodsBean;->getHave_det()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 147
    const-string v3, "delbtn==bean ------"

    invoke-virtual {v0}, Lbean/GoodsBean;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 148
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 149
    .local v1, "msg":Landroid/os/Message;
    const/16 v3, 0x24

    iput v3, v1, Landroid/os/Message;->arg1:I

    .line 150
    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 151
    sget-object v3, Lframent/FramentOrder2;->handler:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 160
    :goto_0
    return-void

    .line 155
    .end local v1    # "msg":Landroid/os/Message;
    :cond_0
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 156
    .restart local v1    # "msg":Landroid/os/Message;
    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 157
    const/16 v3, 0x22

    iput v3, v1, Landroid/os/Message;->arg1:I

    .line 158
    sget-object v3, Lframent/FramentOrder2;->handler:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method
